Wayland: avoid accidental export of internal symbols
authorMatthias Clasen <mclasen@redhat.com>
Tue, 15 Oct 2013 23:41:26 +0000 (19:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 15 Oct 2013 23:44:49 +0000 (19:44 -0400)
Some symbols in the generated Wayland code were getting
decorated with WL_EXPORT, causing them to show up in the
libgdk exports. We don't want that.

https://bugzilla.gnome.org/show_bug.cgi?id=710141

gdk/wayland/Makefile.am

index 6896bff0809ba5a630b0f8dfc6dd9d1e6579232f..bc5375cc292d4cb337980205f9c4ac85ef62c164 100644 (file)
@@ -50,6 +50,8 @@ libgdkwaylandinclude_HEADERS =                        \
 
 %-protocol.c : $(srcdir)/protocol/%.xml
        $(AM_V_GEN)$(WAYLAND_SCANNER) code < $< > $@
+       $(AM_V_GEN)$(SED) -i -e 's/WL_EXPORT //' $@
+
 %-server-protocol.h : $(srcdir)/protocol/%.xml
        $(AM_V_GEN)$(WAYLAND_SCANNER) server-header < $< > $@
 %-client-protocol.h : $(srcdir)/protocol/%.xml